package com.mjx.algorithm.tree;

/**
 * 树中的节点类
 * Created by meijingxiang on 2017/2/7.
 */
public class Node {
    private Integer data;

    private Node leftChild;

    private Node rightChild;

    private Node parent;

    public Integer getData() {
        return data;
    }

    public void setData(Integer data) {
        this.data = data;
    }

    public Node getLeftChild() {
        return leftChild;
    }

    public void setLeftChild(Node leftChild) {
        this.leftChild = leftChild;
    }

    public Node getRightChild() {
        return rightChild;
    }

    public void setRightChild(Node rightChild) {
        this.rightChild = rightChild;
    }

    public Node getParent() {
        return parent;
    }

    public void setParent(Node parent) {
        this.parent = parent;
    }
}
